import request from '@/utils/request'

export function getIntentionData(requestBody) {
  return request({
    url: '/intention',
    method: 'post',
    data: requestBody,
  })
}


export function addIntention(requestBody) {
  return request({
    url: '/intention/add',
    method: 'post',
    data: requestBody,
  })
}

export function updateIntention(requestBody) {
  return request({
    url: '/intention/update',
    method: 'post',
    data: requestBody,
  })
}

export function deleteIntentionById(id) {
  return request({
    url: '/intention/delete',
    method: 'post',
    data: { id },
  })
}
